#!/bin/bash
#
#
#
MARCIMPORT=/usr/local/marcimport
SABRE=/usr/local/vufind-smu
# Disable JETTY_CONSOLE output -- it causes problems when run by cron:
export JETTY_CONSOLE=/dev/null
#
date
# ############################################
# Pre-process Sussex files
echo "Pre process Sussex MARC files"
cd $MARCIMPORT/full/
rm -fr sussexprocessed.old
cp -pr sussexprocessed sussexprocessed.old
# old way with multiple marc files.
#for i in 7 
#do
#  $SABRE/marc_merge_vufind.pl sussexincoming/grabbed.bibsg$i.mrc sussexprocessed/sussex$i.mrc susx > sussexprocessed/out$i &
#  echo Pre-processing Sussex file $i
#  date
#  sleep 200
#done
# new way using same file as primo
$SABRE/marc_merge_vufind.pl sussexincoming/sussexfull.mrc sussexprocessed/sussexfull.mrc susx > sussexprocessed/outfull.txt
date
